package replace.method.with.method.object;

/**
 * Created by Administrator on 2018/1/25.
 */
public class Account {

//    int gamma(int inputVal, int quantity, int yearToDate) {
//        int importantValue1 = (inputVal * quantity) + delta();
//        int importantValue2 = (inputVal * quantity) + 100;
//        if ((yearToDate - importantValue1) > 100) {
//            importantValue2 -= 20;
//        }
//        int importantValue3 = importantValue2 * 7;
//        //and so on
//        return importantValue3 - 2 * importantValue1;
//    }

    int gammaRF(int inputVal, int quantity, int yearToDate) {
        return new Gamma(this, inputVal, quantity, yearToDate).compute();
    }

    int delta() {
        return 0;
    }

}
